package com.example.idachuappone.index.dialog;

import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.net.Uri;
import android.widget.LinearLayout;
import com.example.idachuappone.R;

public class IDialog {

    class AnonymousClass_1 implements OnClickListener {
        private final /* synthetic */ Context val$context;

        AnonymousClass_1(Context context) {
            this.val$context = context;
        }

        public void onClick(DialogInterface dialog, int which) {
            this.val$context.startActivity(new Intent("android.intent.action.CALL", Uri.parse("tel:4006802959")));
        }
    }

    public Dialog showPhone(Context context) {
        return new Builder(context).setView(LinearLayout.inflate(context, R.layout.dialog_phone_view, null)).setPositiveButton("\u547c\u53eb", new AnonymousClass_1(context)).setNegativeButton("\u53d6\u6d88", new OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
            }
        }).show();
    }
}
